<%@ page language="java"  pageEncoding="UTF-8"%>  

<script type="text/javascript">
require.config({		    
    'baseUrl': './asset'
});
require(['admin-order-query'], function(orderquery) {
	orderquery.init();
});
</script>

<script type='text/javascript' src='dep/WdatePicker.js'></script>

<div class="control-group">
	<table>
		<tr>
			<td>
				<font>会员编号</font>
				<input type="text" id="order_userid" class="inputsize"/>
			</td>
			<td>
				<font>取餐地点</font>
				<select id="order-pickplace" class="input-medium search-query">
					<option value="-1">全部</option>
				</select>
			</td>
			<td>
				<font>支付方式</font>
				<select id="order-payway" class="input-medium search-query">
					<option value="-1">全部</option>
					<option value="0">线下支付</option>
					<option value="1">余额支付</option>
					<option value="2">支付宝网页在线支付</option>
					<option value="3">支付宝客户端</option>
				</select>
			</td>
			<td>
				<font>饮品</font>
				<select id="order-drink" class="input-medium search-query">
					<option value="-1">全部</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>
				<font>取餐日期</font>
				<input type="text" id="order_pickdateF" onClick="WdatePicker({isShowClear:true,readOnly:false})" class="inputsize"/>
				<input type="text" id="order_pickdateT" onClick="WdatePicker({isShowClear:true,readOnly:false})" class="inputsize"/>
			</td>
			<td>
				<font>主食&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>
				<select id="order-food" class="input-medium search-query">
					<option value="-1">全部</option>
				</select>
			</td>
			<td>
				<font>订单状态</font>
				<select id="order-state" class="input-medium search-query">
					<option value="-1">全部</option>
					<option value="6">未领取</option>
					<option value="0">未领取未支付</option>
					<option value="1">未领取已支付</option>
					<option value="2">已领取</option>
					<option value="3">已支付过期未取</option>
					<option value="4">未支付过期未取</option>
					<option value="5">已取消</option>
				</select>
			</td>
			<td>
				<button id="order_query" type="button" class="btn btn-primary" data-toggle="button">查询</button>&nbsp;&nbsp;&nbsp;&nbsp;
				<button id="order_download" type="button" class="btn btn-primary" data-toggle="button">下载</button>
			</td>
		</tr>
		
		<table border="1">
		<span id="order_search"></span>
			<thead>
				<th width="9%">订单编号</th>
				<th width="9%">会员编号</th>
				<th width="8%">会员昵称</th>
				<th width="9%">取餐地点</th>
				<th width="7%">金额</th>
				<th width="8%">主食</th>
				<th width="8%">饮品</th>
				<th width="9%">支付方式</th>
				<th width="9%">订单状态</th>
				<th width="8%">预约取餐日期</th>
				<th width="8%">订餐时间</th>
				<th width="8%">实际取餐时间</th>
			</thead>
			<tbody id="order_list">
				<tr>
				</tr>
			</tbody>
		</table>
	</table>
</div>